﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MailTemplateIndex.aspx.cs"
    Inherits="MvcMall.AdminWeb.Manage.Mails.MailTemplateIndex" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>邮件通知模板管理</title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="tabs">
        <ul>
            <li><a href="#list">邮件通知模板管理</a></li>
        </ul>
        <div id="list">
            <asp:Repeater ID="rptRoles" runat="server" ViewStateMode="Disabled" EnableViewState="false">
                <HeaderTemplate>
                    <table width="100%">
                        <tr>
                            <th>
                                Id
                            </th>
                            <th>
                                模板名称
                            </th>
                            <th>
                                应用场景
                            </th>
                            <th>
                                模板内容
                            </th>
                            <th>
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <%# Eval("Id") %>
                        </td>
                        <td>
                            <%# Eval("TemplateName")%>
                        </td>
                        <td>
                            <%# Eval("MailTemplateType")%>
                        </td>
                        <td>
                            <%# Eval("MailBody").ToString().Length > 20 ? Eval("MailBody").ToString().Substring(0,20) : Eval("MailBody")%>
                        </td>
                        <td>
                            <a href='MailTemplateSave.aspx?Id=<%# Eval("Id") %>'>修改</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table></FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    </form>
</body>
</html>
